package com.erp.purchase.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.erp.common.annotation.Excel;
import com.erp.common.core.domain.BaseEntity;

/**
 * 商品信息对象 erp_products
 *
 * @author ruoyi
 * @date 2025-09-05
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 商品编号，主键且自增，从1开始 */
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品类目 */
    @Excel(name = "商品类目")
    private String category;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String productType;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal price;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 商品属性 */
    @Excel(name = "商品属性")
    private String productAttribute;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 商品详情描述 */
    @Excel(name = "商品详情描述")
    private String productDetail;

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getCategory()
    {
        return category;
    }

    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }

    public void setProductAttribute(String productAttribute)
    {
        this.productAttribute = productAttribute;
    }

    public String getProductAttribute()
    {
        return productAttribute;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setProductDetail(String productDetail)
    {
        this.productDetail = productDetail;
    }

    public String getProductDetail()
    {
        return productDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("productName", getProductName())
                .append("category", getCategory())
                .append("productType", getProductType())
                .append("price", getPrice())
                .append("unit", getUnit())
                .append("productAttribute", getProductAttribute())
                .append("status", getStatus())
                .append("productDetail", getProductDetail())
                .toString();
    }
}
